package cn.iocoder.yudao.module.book.controller.admin.users.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户新增/修改 Request VO")
@Data
public class userDTOSaveReqVO {

    @Schema(description = "用户id", example = "9692")
//    @NotEmpty(message = "用户id不能为空")
    private Integer userId;

    @Schema(description = "微信标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "9692")
    @NotEmpty(message = "微信标识不能为空")
    private String openid;

    @Schema(description = "昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "昵称不能为空")
    private String nickname;

    @Schema(description = "头像", example = "https://www.iocoder.cn")
    private String avatarUrl;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "是否为会员")
    private Integer isMember;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "创建时间不能为空")
    private LocalDateTime createTime;

}